package org.csu.bbs.service;

import org.csu.bbs.entity.Admin;
import org.csu.bbs.entity.UserInfo;
import org.csu.bbs.result.Result;
import org.csu.bbs.result.User;

import java.util.List;

public interface UserService {
    Admin GetByUsernameAndPassword(String username, String password);
    int DeleteOne(String userid);
    User GetUserByUsernameAndPassword(String username, String password);
    User updateUser(User user);
    List<UserInfo> search(String userid);
    List<UserInfo> searchAll();
    List<UserInfo> changeBan(UserInfo userInfo);
    List<UserInfo> changeAuthority(UserInfo userInfo);
    User GetUserById(String id);
    Result changeAvatar(User user);
}
